<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue练习</title>
</head>
<body>
    <div id="vm_vue">
        <h1>商品数量:{{count}}</h1>
        <input type="button" value="添加" style="width: 500px;height: 500px">
    </div>

<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        //创建vue对象
        let vm = new Vue({
            el:"div",
            data:{count:0}
        })
        $("input").click(function () {
            vm.count++;
        })
    </script>
</body>
</html>